package com.haoxin.ai_course.modules.course.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.haoxin.ai_course.modules.course.entity.AcCourseUser;

/**
 * 课程用户表
 * 
 * @author xingxiangguo
 * @email bugcn@qq.com
 * @date 2022-06-06 09:44:49
 */
public interface AcCourseUserMapper extends BaseMapper<AcCourseUser> {
	@Insert("INSERT INTO ac_data_record (`data_id`) VALUES (#{dataId})")
	int saveDataId(@Param("dataId") String dataId);

	@Select("select count(1) from ac_data_record where data_id=#{dataId}")
	int getDataId(@Param("dataId") String dataId);

}
